package kr.co.goodwilldd.entity.board.model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlRootElement;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.codehaus.jackson.annotate.JsonAutoDetect;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.codehaus.jackson.map.annotate.JsonSerialize.Inclusion;

@XmlRootElement(name = "board")
@JsonAutoDetect
@JsonSerialize(include = Inclusion.NON_DEFAULT)
public class BoardEntity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1507948672637418815L;

	long seq;
	int boardSeq;
	String subject;
	String content;
	String registor;
	String registDate;
	
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
	}

	public long getSeq() {
		return seq;
	}

	public int getBoardSeq() {
		return boardSeq;
	}

	public String getSubject() {
		return subject;
	}

	public String getContent() {
		return content;
	}

	public String getRegistor() {
		return registor;
	}

	public String getRegistDate() {
		return registDate;
	}

	public void setSeq(long seq) {
		this.seq = seq;
	}

	public void setBoardSeq(int boardSeq) {
		this.boardSeq = boardSeq;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public void setRegistor(String registor) {
		this.registor = registor;
	}

	public void setRegistDate(String registDate) {
		this.registDate = registDate;
	}

}
